package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.entity.User;
import com.hellogood.yaohuo.shared.services.UserService;

@SuppressWarnings("serial")
public class UserServiceImpl extends RemoteServiceServlet implements UserService {

	@Override
	public User checkLogin(String username, String password) {
		return MgrFactory.getInstance().createUserMgr().checkLogin(username, password);
	}

	@Override
	public List<User> getAllUserList() {
		return MgrFactory.getInstance().createUserMgr().getAllUser();
	}

	

}
